﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sdk
{
    public class Mappings
    {
        static public Dictionary<string, FieldTypeEnum> FieldTypeMapDict { get; } = new Dictionary<string, FieldTypeEnum>()
        {
            { "varchar", FieldTypeEnum.String},
            { "nvarchar", FieldTypeEnum.String},
            { "char", FieldTypeEnum.String},
            { "text", FieldTypeEnum.String},

            { "integer", FieldTypeEnum.Int},
            { "int", FieldTypeEnum.Int},
            { "tinyint", FieldTypeEnum.Int},

            { "bigint", FieldTypeEnum.Long},
            { "long", FieldTypeEnum.Long},

            { "decimal", FieldTypeEnum.Decimal},
            { "numeric", FieldTypeEnum.Decimal},
            { "float", FieldTypeEnum.Float},
            { "double", FieldTypeEnum.Double},

            { "datetime", FieldTypeEnum.DateTime},
            { "date", FieldTypeEnum.DateTime},
            { "time", FieldTypeEnum.DateTime},
        };
    }
}
